package com;

import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

@SpringBootApplication
@EnableZuulProxy
public class ZuulServiceApplication extends SpringBootServletInitializer {
	private static    Logger logger= Logger.getLogger(ZuulServiceApplication.class);
	public static void main(String[] args) {
		SpringApplication.run(ZuulServiceApplication.class, args);
		logger.info("ZuulServiceApplication 网关启动");
	} 
	
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ZuulServiceApplication.class);
	}
}
